\ProvidesPackage{config}

\usepackage[english]{babel}
\linespread{0.9}
\newenvironment{tightitemize}
   {\begin{itemize}
   \setlength{\parskip}{0pt}}
   {\end{itemize}}

\RequirePackage{metalogo}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.8]{geometry}

\usepackage{xeCJK}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
\setmainfont{WenQuanYi Micro Hei}
\setCJKmainfont{WenQuanYi Micro Hei}
\linespread{1.3} %1.5倍

\usepackage{fontenc}
\newfontfamily{\githubfont}{Octicons}
\usepackage{microtype}

\newcommand\octocat{{\githubfont\char"F209}}
\newcommand\linkedin{%
\scalebox{0.7}{%
\begin{tikzpicture}[baseline]%
\node[fill=color2,rounded corners=2pt,anchor=base] {%
\linkedinfont\bfseries\upshape\color{white}{in}%
};%
\end{tikzpicture}}}

\AtBeginDocument{\renewcommand{\labelitemi}{-- }}

% Proper alignment
\usepackage[originalcommands]{ragged2e}
\renewcommand*{\cvcomputer}[4]{%
  \cvdoubleitem{#1}{\small\raggedright#2}{#3}{\small\raggedright#4}}

% Not all fonts have an sl shape
\renewcommand*{\cventry}[6]{%
  \cvline{#1}{%
    {\bfseries#2}%
    \ifx#3\else{, {\itshape#3}}\fi%
    \ifx#4\else{, #4}\fi%
    \ifx#5\else{, #5}\fi%
    .%
    \ifx#6\else{\newline{}\begin{minipage}[t]{\linewidth}\small#6\end{minipage}}\fi
    }}%


% Refine quote 
\newcommand*{\myquote}[2]{%
   \quote{\itshape #1 \\ \scshape \footnotesize #2}}

% Hobbies
\newcommand*{\cvhobby}[2]{\cvline{#1}{\small #2}}

% Developer/Contributor footnotes
\usepackage[bottom,norule,symbol*]{footmisc}
\newcommand*{\devnotes}[2]{%
\vfill
\footnotetext[1]{#1}
\footnotetext[2]{#2}
}

\newcommand*{\developer}{\footnotemark[1]}
\newcommand*{\contributor}{\footnotemark[2]}


